//
//  CLDocViewController.h
//  chanlin
//
//  Created by Ryan on 14-11-13.
//  Copyright (c) 2014年 chanlin. All rights reserved.
//

#import "CLBaseViewController.h"
#import "CLPopPanAction.h"
#import "IFAudioPlayerManager.h"
#import <JavaScriptCore/JavaScriptCore.h>

@class CLDocViewController;

@protocol IFDocJSExport <JSExport>

JSExportAs(playVideo, - (void)playVideo:(int )index
           top:(float )top
           left:(float )left
           width:(float )width
           height:(float )height);

JSExportAs(showPic, - (void)showPic:(NSString *)url
           top:(float )top
           left:(float )left
           width:(float )width
           height:(float )height);

JSExportAs(dispatchLink, - (void)dispatchLink:(NSString *)type url:(NSString *)url);

JSExportAs(goSlider, - (void)goSlides:(NSString *)url);

JSExportAs(goOrigin, - (void)goOrigin:(NSString *)url);
- (void)gotoComment;

@end

@class IFDocViewController;
@interface IFDocAction2 : NSObject<IFDocJSExport>

@property (nonatomic,weak) CLDocViewController *doc;



@end

@class CLDocWeiDianCell;
@interface CLDocViewController : CLBaseViewController<UITableViewDelegate,UITableViewDataSource,CLPopPanAction,IFAudioPlayerManagerDelegate,UIWebViewDelegate>

@property (nonatomic,assign)BOOL isRunAudio;

@property (nonatomic,assign)BOOL isAudio;

-(void)didselectINHtmlCell:(CLDocWeiDianCell *)cell;

@end
